﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ET.Monitor.DAL;

namespace ET.Monitor.Model
{

    public class RealTimeModel
    {
        RealTimeDL rt = new RealTimeDL();
        string[] tags;
        string code;
        public RealTimeModel(string[] tags)
        {
            this.tags = tags;

        }
        public RealTimeModel(string code)
        {
            this.code = code;
        }

        double[] retRTValue;

        public double[] RetRTValue
        {
            get
            {
                return rt.GetRTValues(tags);
            }

            set
            {
                retRTValue = value;
            }
        }

        public string RetExecute
        {
            get
            {
                return rt.Execute(code);
            }

            set
            {
                retExecute = value;
            }
        }

        string retExecute;
    }
}
